"""x = int(input("请输入一个数："))
if x < 1 :
  print(x)
elif 1 <= x < 10 :
  print(2 * x - 1)
else:
    print(3 * x - 11)"""




"""import math
a,b,c = eval(input('输入三边长：'))
s = (a+b+c)/2
len = a+b+c
area = math.sqrt(s*(s-a)*(s-b)*(s-c))
z = a**2 + b **2
if a + b > c or a + c > b or b + c > a :
    if a == b == c:
        print("等边三角形")
    elif a == b or a == c or b == c:
        print("等腰三角形")
    elif (a == b or a == c or b == c) and z == c**2 :
        print("等腰直角三角形")
    elif z == c ** 2 :
        print("直角三角形")
    else :
        print("不规则三角形")
    print(len)
    print(area)

else:
    print("不是三角形")"""



"""weight = float(input("请输入货物的重量（公斤）："))

if weight <=20 :
    print(str(weight) + "公斤的货物托运费是" + str(10) + "元")
elif 20 < weight <= 50:
    z = (weight - 20) * 1.5 + 10
    print(str(weight) + "公斤的货物托运费是" + str(z)  + "元")
elif 50 < weight <=100:
    z = 10 + 30 * 1.5 + (weight - 50) * 2
    print(str(weight) + "公斤的货物托运费是" + str(z)+ "元")
else :
    z =  10 + 29 * 1.5 + 50 * 2 + (weight - 100) * 2.5
    print(str(weight) + "公斤的货物托运费是" + str(z)  + "元")"""


"""w = float(input('请输入体重 kg：'))
h = float(input('请输入身高 cm：'))

z = h - 110
if w > z + 5:
    print("过胖")
elif z - 5 <= w <= z + 5:
    print("标准")
elif w < z - 5:
    print("过瘦")"""


"""gander = input("请输入性别：")
w = float(input('请输入体重 kg：'))
h = float(input('请输入身高 cm：'))

if gander != '男' or gander != '女':
    exit("性别输入错误")

if (gander == '男' and w < 70) or (gander == '女' and h < 60 and w < 0):
    exit("性别对应的体重或者身高有误")

boy = (h - 80) * 0.7
girl = (h - 70)* 0.6

if gander == '男':
    z = ((w - boy) / boy ) * 0.1
    if -0.1 <= z <= 0.1:
        print("标准")
    elif -0.2 <= z <= 0.2 :
        print("过轻或者过重")
    else:
        print("肥胖或者体重不足")
else:
    z = ((w - girl) / girl) * 0.1
    if -0.1 <= z <= 0.1:
        print("标准")
    elif -0.2 <= z <= 0.2 :
        print("过轻或者过重")
    else:
        print("肥胖或者体重不足")"""


"""mark = input("请输入：")
if 90 <= mark <=100:
    print("优")
elif 80 <= mark < 90:
    print("良")
elif 70 <= mark < 80:
    print("中")
elif 60 <= mark < 70:
    print("及格")
else:
    print("差")"""



count = int(input("请输入购买洗衣粉的数量："))
sum = count * 11.3
if sum < 50:
    print("总金额：" "\t" + str(sum))
else :
    print("总金额：" "\t" + str(sum))
    z = sum * 0.85
    d = sum  - z
    sum =  sum - d
    print("折扣金额：" "\t" + str(d))
    print("实付金额：" "\t" + str(sum))
